package SingletonPattern;

/**
 * @Author: zhaojie
 * @Date: Created in 10:23 2018/6/26
 * @Description: 懒汉式，线程不安全
 */
public class Singleton {

    private static Singleton singleton;

    private Singleton(){}

    public Singleton getSingleton(){
        if (singleton==null){
            singleton= new Singleton();
        }
        return  singleton;
    }
}
